
window._SKILLCREATER = {
    createSkill:function(){

        window._SKILLCOMBINE = {
            '战士':window.JD_ZS,
            '法师':window.JD_FS,
            '护卫':window.JD_HW,
            '射手':window.JD_SS,

            '医师':window.JD_YS,
            '魔战士':window.JD_MZS ,
            '刺客':window.JD_CK,

            '首领':window.JD_SL,
            '方士':window.JD_FANG,
            '盗贼':window.JD_DZ,
            
            '无业':window.JD_WY
        }

        for(var key in window._SKILLCOMBINE){
            //console.log(key);
            var jobdes = window._SKILLCOMBINE[key];

            //console.log(key,jobdes);

            for(var skillname in jobdes['主动']){
                window._SKILL[skillname]=jobdes['主动'][skillname];
            }

            for(var skillname in jobdes['被动']){
                window._SKILLBD[skillname]=jobdes['被动'][skillname];
            }

            for(var rolename in jobdes['角色']){
                window._NPC[rolename]=jobdes['角色'][rolename];
                var pf = jobdes['角色'][rolename].pf;
                var face =jobdes['角色'][rolename].face;
                var name = jobdes['角色'][rolename].name;
                if(
                    pf!=rolename
                    ||face!=rolename
                    ||name!=rolename
                ){
                    //console.log("资源异常",rolename,jobdes['角色'][rolename]);
                }
            }

        }

    }
}

window._XWDESIGN={


        //装备 10条
    //attack defend mattack mdefend 1000 maxHp 10000
    'jian':{elv:0,label:'剑术',img:'剑术',attr:'attack',fsx:[{type:'attack',base:1000},{type:'defendReduce',base:1}],
    skillbd:{}},
    'qiang':{elv:0,label:'枪棒',img:'枪棒',attr:'attack',fsx:[{type:'attack',base:1000}],
    skillbd:{}},
    'dao':{elv:0,label:'刀法',img:'刀法',attr:'attack',fsx:[{type:'attack',base:1000},{type:'stun',base:1}],
    skillbd:{}},
    'she':{elv:0,label:'射术',img:'射术',attr:'attack',fsx:[{type:'attack',base:1000},{type:'hit',base:2}],
    skillbd:{}},
    'shan':{elv:0,label:'经略',img:'经略',attr:'attack',fsx:[{type:'mattack',base:1000}],
    skillbd:{}},

    'zhang':{elv:0,label:'杖法',img:'杖法',attr:'mdefend',fsx:[{type:'maxHp',base:10000},{type:'gushang',base:1000}],
    skillbd:{}},
     
    //mattackBack 2   	
    'zhong':{elv:0,label:'重甲',img:'重甲',attr:'defend',fsx:[{type:'defend',base:1000},{type:'mattackBack',base:2}],
    skillbd:{}},
    //superAttack 2
    'pi':{elv:0,label:'皮甲',img:'皮甲',attr:'attack',fsx:[{type:'defend',base:1000},{type:'superAttack',base:2}],
    skillbd:{}},
    //attackBack 2
    'bu':{elv:0,label:'布甲',img:'布甲',attr:'mdefend',fsx:[{type:'mdefend',base:1000},{type:'attackBack',base:2}],
    skillbd:{beginMagic:1}},
    'bao':{elv:0,label:'御宝',img:'御宝',attr:'maxHp',fsx:[{type:'maxHp',base:5000}],
    skillbd:{maxMagic:1}},	

    //功能 7条
    //gushang 1000
    'ys':{elv:1,label:'医术',img:'医术',attr:'mdefend',fsx:[{type:'gushang',base:10000}],
    skillbd:{poison:1}},
    //defendReduce 1
    'bc':{elv:1,label:'辩才',img:'辩才',attr:'attack',fsx:[{type:'defendReduce',base:1}],
    skillbd:{}},
    //mdefendReduce 1
    'zhous':{elv:1,label:'咒术',img:'咒术',attr:'mattack',fsx:[{type:'mdefendReduce',base:1}],
    skillbd:{}},	
    //stunMiss 1
    'bh':{elv:1,label:'变化',img:'变化',attr:'maxHp',fsx:[{type:'stunMiss',base:1}],
    skillbd:{}},
    //miss 2
    'ds':{elv:1,label:'盗术',img:'偷窃',attr:'mdefend',fsx:[{type:'miss',base:2}],
    skillbd:{equipDrop:1,skillDrop:1}},//摸金校尉--道具掉落 
    //aqDamage 5
    'aq':{elv:1,label:'暗器',img:'暗器',attr:'defend',fsx:[{type:'aqDamage',base:5}],
    skillbd:{aqDistance:1,aqScope:1}},//暗器命中 暗器伤害 暗器射程  暗器范围 
    //damagePlus 2
    'wux':{elv:1,label:'武学',img:'武学',attr:'attack',fsx:[{type:'superDamagePlus',base:2}],
    skillbd:{lianji:1,xiezhan:1,fanji:1}},//连击 分身

    //特殊	7条
    //gedang 2
    'tp':{elv:2,label:'体魄',img:'体魄',attr:'maxHp',fsx:[{type:'gedang',base:2}],
    skillbd:{}},//血量
    //damageReduce 2
    'kj':{elv:2,label:'空间',img:'空间',attr:'maxHp',fsx:[{type:'damageReduce',base:2}],
    skillbd:{fly:1,move:1,againMove:1}},
    //speed 1
    'sf':{elv:2,label:'身法',img:'身法',attr:'attack',fsx:[{type:'speed',base:1}],
    skillbd:{speed:1,anqimianyi:1}},//新增	
    //superDamagePlus 3
    'bq':{elv:2,label:'霸气',img:'霸气',attr:'attack',fsx:[{type:'damagePlus',base:3}],
    skillbd:{weifeng:1}},//新增	
    //stun 1
    'nl':{elv:2,label:'念力',img:'念力',attr:'attack',fsx:[{type:'stun',base:1}],
    skillbd:{poge:1}},//新增	
    //death 0.5
    'bl':{elv:2,label:'臂力',img:'臂力',attr:'attack',fsx:[{type:'death',base:0.5}],
    skillbd:{distance:1}}, 
    //hit 2
    'xx':{elv:2,label:'修心',img:'修心',attr:'mdefend',fsx:[{type:'hit',base:2}],
    skillbd:{aqPer:1,magicPer:1}},

    //种族 12条
    // (仙 精神+血量)(魔 攻击+血量)(人 魔防+物防)
    //attackPer mattackPer defendPer mdefendPer maxHpPer 5 
    'xs':{elv:3,label:'仙术',img:'仙术',attr:'mattack',fsx:[{type:'mattackPer',base:3}],
    skillbd:{scope:1,nodeath:1}},
    'sq':{elv:3,label:'神祇',img:'神祇',attr:'maxHp',fsx:[{type:'mattackPer',base:3}],
    skillbd:{strongEnergy:1,shendun:1}},//神兽技能 
    'fx':{elv:3,label:'法相',img:'法相',attr:'defend',fsx:[{type:'maxHpPer',base:3}],
    skillbd:{ironwall:1,clearBody:1}},//新增

    'yaos':{elv:3,label:'妖术',img:'妖',attr:'attack',fsx:[{type:'attackPer',base:3}],
    skillbd:{lianjiSkill:1,statusBody:1}},
    'hs':{elv:3,label:'魂术',img:'魂术',attr:'mattack', fsx:[{type:'attackPer',base:3}],
    skillbd:{magicCloth:1,yuanhun:1}},//新增	
    'yus':{elv:3,label:'驭兽',img:'驭兽',attr:'defend',fsx:[{type:'maxHpPer',base:3}],
    skillbd:{fanzhi:1,beActive:1}},//新增	
    
    'bf':{elv:3,label:'兵法',img:'兵法',attr:'defend',fsx:[{type:'defendPer',base:3}],
    skillbd:{hardwork:1,shareExp:1}},
    'jg':{elv:3,label:'机关',img:'机械',attr:'mdefend',fsx:[{type:'mdefendPer',base:3}],
    skillbd:{goldCloth:1}},//人族机关
    'ny':{elv:3,label:'能源',img:'能源',attr:'maxHp',fsx:[{type:'maxHpPer',base:3}],
    skillbd:{beginEnergy:1,missEnergy:1,hitEnergy:1}},//初始能量 蓄势 集气
    
    'kh':{elv:3,label:'狂化',img:'狂化',attr:'attack',fsx:[{type:'maxHpPer',base:3}],
    skillbd:{sblood:1,blood:1}},//新增	
    'fj':{elv:3,label:'佛经',img:'佛经',attr:'mdefend',fsx:[{type:'maxHpPer',base:3}],
    skillbd:{clearHeart:1,eye:1}},//新增
    'zs':{elv:3,label:'再生',img:'再生',attr:'maxHp',fsx:[{type:'maxHpPer',base:3}],
    skillbd:{hpRecovery:1,MagicRecovery:1}},//新增
     
    //五行 5条
    //goldPlus woodPlus firePlus soliPlus waterPlus
    //woodReduce soliReduce fireReduce goldReduce waterReduce
    'jin':{elv:4,label:'锐金',img:'锐金',attr:'mattack',fsx:[{type:'goldPlus',base:3},{type:'woodReduce',base:3}],
    skillbd:{pandeng:1}},
    'mu':{elv:4,label:'巨木',img:'巨木',attr:'maxHp',fsx:[{type:'woodPlus',base:3},{type:'soliReduce',base:3}],
    skillbd:{youji:1}},
    'shui':{elv:4,label:'洪水',img:'洪水',attr:'mdefend',fsx:[{type:'waterPlus',base:3},{type:'fireReduce',base:3}],
    skillbd:{caoduo:1}},
    'huo':{elv:4,label:'烈火',img:'烈火',attr:'attack',fsx:[{type:'firePlus',base:3},{type:'goldReduce',base:3}],
    skillbd:{bihuo:1}},
    'tu':{elv:4,label:'厚土',img:'厚土',attr:'defend',fsx:[{type:'soliPlus',base:3},{type:'waterReduce',base:3}],
    skillbd:{bidu:1}},


}